for (i = 0; i < (render_y1 - render_y0); i++)
{
+ const guchar *src;
+ guchar *dest;
y_pos = ((i + render_y0) * y_step + y_step / 2) >> SCALE_SHIFT;
y_pos = CLAMP (y_pos, 0, src_height - 1);
- const guchar *src = src_buf + y_pos * src_rowstride;
- guchar *dest = dest_buf + i * dest_rowstride;
+ src = src_buf + y_pos * src_rowstride;
+ dest = dest_buf + i * dest_rowstride;
x = render_x0 * x_step + x_step / 2;
}
else
{
- INNER_LOOP(4, 4, guint32 *p32=(guint32*)dest;*p32=*((guint32*)p));
+ gint32 *p32;
+ INNER_LOOP(4, 4, p32=(guint32*)dest;*p32=*((guint32*)p));
}
}
}
for (i = 0; i < (render_y1 - render_y0); i++)
{
+ const guchar *src;
+ guchar *dest;
y_pos = ((i + render_y0) * y_step + y_step / 2) >> SCALE_SHIFT;
y_pos = CLAMP (y_pos, 0, src_height - 1);
- const guchar *src = src_buf + y_pos * src_rowstride;
- guchar *dest = dest_buf + i * dest_rowstride;
+ src = src_buf + y_pos * src_rowstride;
+ dest = dest_buf + i * dest_rowstride;
x = render_x0 * x_step + x_step / 2;
for (i = 0; i < (render_y1 - render_y0); i++)
{
+ const guchar *src;
+ guchar *dest;
y_pos = ((i + render_y0) * y_step + y_step / 2) >> SCALE_SHIFT;
y_pos = CLAMP (y_pos, 0, src_height - 1);
- const guchar *src = src_buf + y_pos * src_rowstride;
- guchar *dest = dest_buf + i * dest_rowstride;
+ src = src_buf + y_pos * src_rowstride;
+ dest = dest_buf + i * dest_rowstride;
x = render_x0 * x_step + x_step / 2;